package com.lianxian.xindong.commonres.entity;

import com.hxb.library.base.BaseBean;

import com.lianxian.xindong.commonsdk.http.Api;

/**
 * @作者： HeXingBo
 * @时间： 2022/11/14 17:03
 * @描述：
 */
public class ResultBaseBean<T> extends BaseBean {


    /**
     * code : 0
     * data : {}
     * msg :
     */

    private int code;
    private T data;
    private int total;
    private String msg;

    public boolean isSuccess() {
        return code == Api.REQUEST_SUCCESS;
    }

    public int getCode() {
        return code;
    }

    public T getData() {
        return data;
    }

    public int getTotal() {
        return total;
    }

    public String getMsg() {
        return msg;
    }

}
